#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;

int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int res = (a + b) * (c - d);
    cout << res << '\n' << "Takahashi" << '\n';

    return 0;
}